<div class="pt20">
<?php $form=$this->beginWidget('CActiveForm', array('id'=>'myform','htmlOptions'=>array('name'=>'myform'))); ?>
<table class="fontc_666 height32">
    <tbody>
        <tr height="55">
            <td valign="top" align="right" width="120" class="pr5"><span class="pr5 fontc_orange_red">*</span>分数段规则：</td>
            <td valign="top" class="formValidator_td">
                <input type="text" value="" name="point" class="col3 pt5 pr10 pb5 pl10 height20 border_c border_3 fontc_666" id="rules">
                <div class="formValidator_tip">
                    <p id="rulesTip" ></p>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center" class="pb20">
                <input type="submit" value="保存" class="b_a_n border_3 back_bgfb w80 height32 fontc_FFF fonts_12 mr10 cursor">
                <input type="button" value="取消" onclick="api.close()" class="b_a_n border_3 back_bgb w80 height32 fontc_FFF fonts_12 cursor">
            </td>
        </tr>
        
    </tbody>
</table>
</div>
<?php $this->endWidget(); ?>
<script>
$(function(){
	$.formValidator.initConfig({formID:"myform",theme:"126",submitOnce:false,
	onError:function(msg,obj,errorlist){
		$("#errorlist").empty();
		$.map(errorlist,function(msg){
			$("#errorlist").append("<li>" + msg + "</li>")
		});
		alert(msg);
	},
	ajaxPrompt : '有数据正在异步验证，请稍等...'
	});

	/*分数段规则验证*/
	$("#rules").formValidator({
		onShowText:"请输入分数段规则",
		onShow:"",
		onFocus:"",
		onCorrect:"输入正确",
		leftTrim:true,
		rightTrim:true
	}).inputValidator({
		min:1,
		onError:"分数段规则不能为空"
	});

})
</script>
<?php exit; ?>